package com.maybach.core.template.impl;

import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * Created by houenxun on 16/3/7.
 * 打款给供应商
 */
@Component
public class ShippingTemplate extends AbstractTemplate {

    @Override
    public String getCode() {
        return "shipping";
    }

    @Override
    public String getTemplate() {
        return "您的订单宝申请$!{loanOrder.orderNo}（$!{loanOrder.orderName}）已经$!{shippingOrder.logisticsCompany}承运，可以进入我的垫资订单中查看详情，如有疑问，请拨打4000390158联系客服专员。";
    }


    @Override
    public boolean checkParams(Map<String, Object> params) {
        if (null != params) {
            if (params.containsKey("loanOrder")&& params.containsKey("shippingOrder")) {
                return true;
            }
        }
        return false;
    }

    @Override
    public String getTitle() {
        return "订单宝车辆状态变更通知";
    }
}
